class Solution(object):
    def generatePossibleNextMoves(self, currentState):
        """
        :type currentState: str
        :rtype: List[str]
        """
        n = len(currentState)
        out = []
        for i in range(n - 1):
            if currentState[i] == '+' and currentState[i] == currentState[i + 1]:
                s = list(currentState)
                s[i] = '-'
                s[i + 1] = '-'
                out_s = ''.join(s)
                out.append(out_s)
        return out


data = Solution()
currentState = "++"
print(data.generatePossibleNextMoves(currentState))